package com.itmuyue.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.List;

@Data
public class User {
    @TableId(type = IdType.AUTO)
    private int user_id;
    private String username;
    private String password;
    private String email;
    private String register_date;
    private String avatar;
    private String user_type;
//    描述用户的所有收藏
    @TableField(exist = false)
    private List<user_collections> user_collectionsList;
}
